package IO.objectstream;

import java.io.Serializable;

/**
 * @author 15594
 */
public class Account implements Serializable {
    private int id;
    private Double money;

    private static final Long serialVersionUID = 89310913221L;

    public Account() {
    }

    public Account(int id, Double money) {
        this.id = id;
        this.money = money;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "Account{" +
                "id=" + id +
                ", money=" + money +
                '}';
    }
}
